package com.byxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.dao.ReplyDao;
import com.byxy.entity.Reply;
import com.byxy.service.ReplyService;

@Transactional
@Service
public class ReplyServiceImpl implements ReplyService {
	@Autowired
	private ReplyDao replyDao;

	public List<Reply> findAll() {
		return replyDao.findAll();
	}

	public Reply get(Integer replyId) {
		return replyDao.get(replyId);
	}

	public void delete(Integer tipId) {
		replyDao.delete(tipId);
	}

	public void add(Integer tipId, String replyContent, Integer userId) {
		replyDao.add(tipId, replyContent, userId);
	}

}
